import React from 'react';
import {
  Route,
  Switch,

} from 'react-router-dom'

// pc模块
import PCIndex from '../component/pc_index';
import PCNewsDetail from '../component/pc_newsdetail';
import PCUserCenter from '../component/pc_usercenter';
import PCNewsList from '../component/pc_newslist';

const PcRouter = () => (
  <Switch>
    <Route exact path="/" component={PCIndex} key="pcIndex" />
    <Route path="/list/:newsName/:pageNum?" component={PCNewsList} key="pcList" />
    <Route path="/detail/:newsId" component={PCNewsDetail} key="pcDetail" />
    <Route path="/user-center" component={PCUserCenter} key="pcUser" />
  </Switch>
)


export default PcRouter
